import request from '@/utils/request'

// 查询体检列表
export function listPhysical(query) {
  return request({
    url: '/hospital/physical/list',
    method: 'get',
    params: query
  })
}

// 查询体检详细
export function getPhysical(physicalId) {
  return request({
    url: '/hospital/physical/' + physicalId,
    method: 'get'
  })
}

// 新增体检
export function addPhysical(data) {
  return request({
    url: '/hospital/physical',
    method: 'post',
    data: data
  })
}

// 修改体检
export function updatePhysical(data) {
  return request({
    url: '/hospital/physical',
    method: 'put',
    data: data
  })
}

// 删除体检
export function delPhysical(physicalId) {
  return request({
    url: '/hospital/physical/' + physicalId,
    method: 'delete'
  })
}

// 导出体检
export function exportPhysical(query) {
  return request({
    url: '/hospital/physical/export',
    method: 'get',
    params: query
  })
}